package com.example.provider.controller;

import com.example.common.entity.Demand;
import com.example.common.entity.Message;
import com.example.common.entity.Project;
import com.example.common.entity.WorkRoom;
import com.example.provider.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/user")
public class IndexController {
    @Autowired
    private IndexService indexService;

    /**
     * 工作室推荐,根据评分高低
     */
    @ResponseBody
    @GetMapping("/RecWorkroom")
    public List<WorkRoom> RecWorkroom() {
        return indexService.RecWorkroom();
    }

}
